Hello,
Has anyone seen this? I am not too experienced with Ruby and have no idea what any of this means but it's broken like so for me:
I get the same thing if I insert valid host, username and password. Would love to see this working. Any ideas appreciated.
Thanks,
Matt
Has anyone seen this? I am not too experienced with Ruby and have no idea what any of this means but it's broken like so for me:
Code:
./zabcon -d8
i486-linux
D8 ./libs/command_help.rb:method:63 CommandHelp.method overload
D8 ./libs/command_help.rb:method:64 Arg: :language=
D8 ./libs/command_help.rb:method:76 returning: #<Method: CommandHelp#language=>
Welcome to Zabcon.
Use the command 'help' to get help on commands
D8 ./libs/command_help.rb:method:63 CommandHelp.method overload
D8 ./libs/command_help.rb:method:64 Arg: :add_host
D8 ./libs/command_help.rb:method:76 returning: #<Proc:0xb755faac@./libs/command_help.rb:70>
D8 ./libs/command_help.rb:method:63 CommandHelp.method overload
D8 ./libs/command_help.rb:method:64 Arg: :add_user
D8 ./libs/command_help.rb:method:76 returning: #<Proc:0xb755faac@./libs/command_help.rb:70>
D8 ./libs/command_help.rb:method:63 CommandHelp.method overload
D8 ./libs/command_help.rb:method:64 Arg: :get_user
D8 ./libs/command_help.rb:method:76 returning: #<Proc:0xb755faac@./libs/command_help.rb:70>
D8 ./libs/command_help.rb:method:63 CommandHelp.method overload
D8 ./libs/command_help.rb:method:64 Arg: :delete_user
D8 ./libs/command_help.rb:method:76 returning: #<Proc:0xb755faac@./libs/command_help.rb:70>
D8 ./libs/command_help.rb:method:63 CommandHelp.method overload
D8 ./libs/command_help.rb:method:64 Arg: :delete_host
D8 ./libs/command_help.rb:method:76 returning: #<Proc:0xb755faac@./libs/command_help.rb:70>
-> login foo bar blah
D6 ./zabcon:start:207 Input from user: login foo bar blah
D7 ./libs/command_tree.rb:parse:86 Parsing: login foo bar blah
D7 ./libs/command_tree.rb:parse:88 User Variables: {}
D7 ./libs/command_tree.rb:search:58 Searching: login foo bar blah
D7 ./libs/command_tree.rb:search:65 search result: #<CommandTree:0x-2456f6e6 @command="login", @commandproc=#<Method: ZabconCore#do_login>, @helpproc=nil, @argument_processor=#<Proc:0xb7579970@./libs/command_tree.rb:164>, @arguments=nil, @options={:suppress_printer=>true}, @depth=1, @children=[]>
D6 ./libs/command_tree.rb:parse:96 calling argument processor: foo bar blah
D4 ./libs/argument_processor.rb:login:597 args: foo bar blah
D6 ./libs/command_tree.rb:parse:98 received from argument processor: {:api_params=>{:server=>"foo", :username=>"bar", :password=>"blah"}}
D6 ./zabcon:start:213 Results from parse: {:api_params=>{:server=>"foo", :username=>"bar", :password=>"blah"}, :proc=>#<Method: ZabconCore#do_login>, :options=>{:suppress_printer=>true}, :helpproc=>nil}
D4 ./zabcon:start:223 Calling function: {:api_params=>{:server=>"foo", :username=>"bar", :password=>"blah"}, :proc=>#<Method: ZabconCore#do_login>, :options=>{:suppress_printer=>true}, :helpproc=>nil}
D6 ./zabbixapi.rb:initialize:139 protocol: , host:
D6 ./zabbixapi.rb:initialize:140 port: , path: foo/api_jsonrpc.php
D6 ./zabbixapi.rb:initialize:141 query: , fragment:
D8 ./zabbixapi.rb:do_request:224 Sending: {"auth":null,"method":"user.authenticate","id":0,"params":{"password":"blah","user":"bar"},"jsonrpc":"2.0"}
/usr/lib/ruby/1.8/net/http.rb:1116:in `addr_port': undefined method `+' for nil:NilClass (NoMethodError)
from /usr/lib/ruby/1.8/net/http.rb:1076:in `begin_transport'
from /usr/lib/ruby/1.8/net/http.rb:1047:in `request'
from ./zabbixapi.rb:226:in `do_request'
from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
from ./zabbixapi.rb:220:in `do_request'
from ./zabbixapi.rb:173:in `login'
from ./libs/zbxcliserver.rb:41:in `initialize'
from ./zabcon:414:in `new'
from ./zabcon:414:in `do_login'
from ./zabcon:224:in `call'
from ./zabcon:224:in `start'
from ./zabcon:770:in `run'
from ./zabcon:779
Thanks,
Matt

Comment